<?php include "../public/header.php";?>
<?php include "../public/header_show.php";?>
<body id="xiangqingPage">
<div id="xiangqingBox">
    <div class="page-title">
        <div class="page-title-con">
            <span class="pageshowtitle">详情</span>
            <div class="page-title-opt-list">
                <?php include "../public_flow/flow_show_optbut.php";?>
                <button class="layui-btn layui-btn-sm btn-light marginr5 opt">
                    操作<i class="layui-icon layui-icon-down layui-font-12"></i>
                </button>
                <span id="page-close" class="page-close" onclick="layer_close()">×</span>
            </div>
        </div>
    </div>
    <div class="main-container">
        <div><?php include "../public_flow/flow_show_info.php";?></div>

        <div class="tongbox tongbox5 business_1 layui-hide">
            <div class="tuo"><div class="tit">项目名称</div><div class="con" id="tong_name"></div></div>
            <div class="tuo"><div class="tit">招标方/建设单位</div><div class="con" id="tong_jian_unit"></div></div>
            <div class="tuo"><div class="tit">项目类型</div><div class="con" id="tong_engintype_name"></div></div>
            <div class="tuo"><div class="tit">项目属性</div><div class="con" id="tong_business_name"></div></div>
            <div class="tuo"><div class="tit">预计工程造价(元)</div><div class="con" id="tong_yuzaofee"></div></div>
        </div>
        <div class="tongbox tongbox5 business_2 layui-hide">
            <div class="tuo"><div class="tit">项目名称</div><div class="con" id="tong_name2"></div></div>
            <div class="tuo"><div class="tit">招标方式</div><div class="con" id="tong_zhaotype_name"></div></div>
            <div class="tuo"><div class="tit">项目属性</div><div class="con" id="tong_business_name2"></div></div>
            <div class="tuo"><div class="tit">联营方/委托方</div><div class="con" id="tong_lian_unit"></div></div>
            <div class="tuo"><div class="tit">项目所属单位</div><div class="con" id="tong_chanid_name"></div></div>
        </div>

        <div class="table-box tablenes">
            <div class="title">项目基本信息</div>
            <table class="layui-table">
                <tbody>
                <tr><td class="tt">项目状态</td><td class="tv" id="state_name" colspan="3"></td></tr>
                <tr><td class="tt">项目名称</td><td class="tv" id="name"></td><td class="tt">项目编号</td><td class="tv" id="number"></td></tr>
                <tr><td class="tt">项目类型</td><td class="tv" id="engintype_name"></td><td class="tt">招标方/建设单位</td><td class="tv" id="jian_unit"></td></tr>
                <tr><td class="tt">项目所在地</td><td class="tv" id="areas"></td><td class="tt">项目地址</td><td class="tv" id="addr"></td></tr>
                <tr><td class="tt">招标方式</td><td class="tv" id="zhaotype_name"></td><td class="tt">资质要求</td><td class="tv" id="ziyao"></td></tr>
                <tr><td class="tt">项目所属单位</td><td class="tv" id="chanid_name"></td><td class="tt">项目属性</td><td class="tv" id="business_name"></td></tr>
                <tr class="business2 layui-hide"><td class="tt">联营方/委托方</td><td class="tv" id="lian_unit" colspan="3"></td></tr>
                <tr><td class="tt">项目概况</td><td class="tv" id="kuang" colspan="3"></td></tr>
                <tr><td class="tt">备注</td><td class="tv" id="explain" colspan="3"></td></tr>
                </tbody>
            </table>
        </div>

        <div class="table-box tablenes">
            <div class="title">招标信息</div>
            <table class="layui-table">
                <tbody>
                <tr><td class="tt">预计工程造价(元)</td><td class="tv" id="yuzaofee" colspan="3"></td></tr>
                <tr><td class="tt">招标代理机构</td><td class="tv" id="zhao_unit"></td><td class="tt">投标保证金金额(元)</td><td class="tv" id="baofee"></td></tr>
                <tr><td class="tt">投标截止时间</td><td class="tv" id="enddt_tou"></td><td class="tt">开标时间</td><td class="tv" id="kaidt"></td></tr>
                <tr><td class="tt">招标说明</td><td class="tv" id="zhaoshuo" colspan="3"></td></tr>
                </tbody>
            </table>
        </div>

        <div class="table-box tablenes">
            <div class="title">投标信息</div>
            <table class="layui-table">
                <tbody>
                <tr><td class="tt">参投单位</td><td class="tv" id="touunit_name" colspan="3"></td></tr>
                <tr><td class="tt">编标员</td><td class="tv" id="bianer_name" colspan="3"></td></tr>
                <tr><td class="tt">投标说明</td><td class="tv" id="toushuo" colspan="3"></td></tr>
                </tbody>
            </table>
        </div>

        <div class="table-box tablenes">
            <div class="title">开标信息</div>
            <table class="layui-table">
                <tbody>
                <tr><td class="tt">开标结果</td><td class="tv" id="kaiguo" colspan="3"></td></tr>
                <tr class="wininfo layui-hide"><td class="tt">中标单位</td><td class="tv" id="winunit_name" colspan="3"></td></tr>
                <tr class="wininfo layui-hide"><td class="tt">中标金额(元)</td><td class="tv" id="winfee"></td><td class="tt">中标日期</td><td class="tv" id="windt"></td></tr>
                <tr><td class="tt">开标说明</td><td class="tv" id="kaishuo" colspan="3"></td></tr>
                </tbody>
            </table>
        </div>
        <div class="table-box tablenes wininfo layui-hide">
            <div class="title">开竣工信息</div>
            <table class="layui-table">
                <tbody>
                <tr><td class="tt">实际开工日期</td><td class="tv" id="shikaidt"></td><td class="tt">竣工验收日期</td><td class="tv" id="shijundt"></td></tr>
                </tbody>
            </table>
        </div>

        <div><?php include "../public/upinfo_show.php";?></div>
        <div><?php include "../public_flow/flow_show_flowrelas.php";?></div>
        <div><?php include '../public_flow/flow_show_shenlog.php'?></div>
        <div><?php include '../public_flow/flow_show_talk.php'?></div>
        <div><?php include '../public/opt_browse.php'?></div>
    </div>


    <div class="showrrboxtext">
        <div class="business_1_no layui-hide">
            <div class="table-box tablenes">
                <div class="title">投标费信息</div>
                <div class="tuo"><div class="tit">投标费支付金额(元)</div><div class="con" id="business_1_no_zhitoufee">0</div></div>
            </div>
            <div class="table-box tablenes">
                <div class="title">保证金信息</div>
                <div class="tuo"><div class="tit">保证金缴纳金额(元)</div><div class="con" id="business_1_no_bondjiaofee">0</div></div>
                <div class="tuo"><div class="tit">保证金退回金额(元)</div><div class="con" id="business_1_no_bondtuifee">0</div></div>
            </div>
        </div>

        <div class="business_1_win layui-hide">
            <div class="table-box tablenes">
                <div class="title">项目收入</div>
                <div class="tuo"><div class="tit">收入合同金额含补充(元)</div><div class="con" id="business_1_win_shimoney">0</div></div>
                <div class="tuo"><div class="tit">收入合同结算金额(元)</div><div class="con" id="business_1_win_shijiemoney">0</div></div>
                <div class="tuo"><div class="tit">项目签证金额含税(元)</div><div class="con" id="business_1_win_visamoney">0</div></div>
                <div class="tuo"><div class="tit">工程回款金额(元)</div><div class="con" id="business_1_win_shougonghuifee">0</div></div>
                <div class="tuo"><div class="tit">公司垫资金额(元)</div><div class="con" id="business_1_win_shougongdianfee">0</div></div>
            </div>
            <div class="table-box tablenes">
                <div class="title">项目支出</div>
                <div class="tuo"><div class="tit">支出合同金额含变更(元)</div><div class="con" id="business_1_win_caimoney">0</div></div>
                <div class="tuo"><div class="tit">支出合同结算金额(元)</div><div class="con" id="business_1_win_caijiemoney">0</div></div>
                <div class="tuo"><div class="tit">采购单金额(元)</div><div class="con" id="business_1_win_buymoney">0</div></div>
                <div class="tuo"><div class="tit">项目付款金额(元)</div><div class="con" id="business_1_win_zhixiangfee">0</div></div>
                <div class="tuo"><div class="tit">项目费用报销(元)</div><div class="con" id="business_1_win_zhienbaofee">0</div></div>
            </div>
            <div class="table-box tablenes">
                <div class="title">项目收支差</div>
                <div class="tuo"><div class="tit">项目收支差(元)</div><div class="con" id="business_1_win_balancefee">0</div></div>
            </div>
            <div class="table-box tablenes">
                <div class="title">项目票税</div>
                <div class="tuo"><div class="tit">项目开票金额(元)</div><div class="con" id="business_1_win_kai_money">0</div></div>
                <div class="tuo"><div class="tit">销项税额(元)</div><div class="con" id="business_1_win_kai_ratefee">0</div></div>
                <div class="tuo"><div class="tit">项目收票金额(元)</div><div class="con" id="business_1_win_shou_money">0</div></div>
                <div class="tuo"><div class="tit">进项税额(元)</div><div class="con" id="business_1_win_shou_ratefee_zhuan">0</div></div>
                <div class="tuo"><div class="tit">应计增值税(元)</div><div class="con" id="business_1_win_zengzhifee">0</div></div>
            </div>
            <div class="table-box tablenes">
                <div class="title">项目应收</div>
                <div class="tuo"><div class="tit">待回款按合同(元)</div><div class="con" id="business_1_win_daihuifee_anhe">0</div></div>
                <div class="tuo"><div class="tit">待回款按开票(元)</div><div class="con" id="business_1_win_daihuifee_ankai">0</div></div>
                <div class="tuo"><div class="tit">待回款按结算(元)</div><div class="con" id="business_1_win_daihuifee_anjie">0</div></div>
            </div>
        </div>

        <div class="business_2_no layui-hide">
            <div class="table-box tablenes">
                <div class="title">投标费信息</div>
                <div class="tuo"><div class="tit">投标费收取金额(元)</div><div class="con" id="business_2_no_shoutoufee">0</div></div>
                <div class="tuo"><div class="tit">投标费支付金额(元)</div><div class="con" id="business_2_no_zhitoufee">0</div></div>
                <div class="tuo"><div class="tit">收支差(元)</div><div class="con" id="business_2_no_toushouzhicha">0</div></div>
            </div>
            <div class="table-box tablenes">
                <div class="title">保证金信息</div>
                <div class="tuo"><div class="tit">保证金收取金额(元)</div><div class="con" id="business_2_no_bondshoufee">0</div></div>
                <div class="tuo"><div class="tit">保证金缴纳金额(元)</div><div class="con" id="business_2_no_bondjiaofee">0</div></div>
                <div class="tuo"><div class="tit">保证金退回金额(元)</div><div class="con" id="business_2_no_bondtuifee">0</div></div>
                <div class="tuo"><div class="tit">保证金返还金额(元)</div><div class="con" id="business_2_no_bondfanfee">0</div></div>
                <div class="tuo"><div class="tit">保证金余额(元)</div><div class="con" id="business_2_no_baoyufee">0</div></div>
            </div>
            <div class="table-box tablenes">
                <div class="title">标前利润</div>
                <div class="tuo"><div class="tit">标前利润(元)</div><div class="con" id="business_2_no_biaoqianfunfee">0</div></div>
            </div>
        </div>

        <div class="business_2_win layui-hide">
            <div class="table-box tablenes">
                <div class="title">项目收入</div>
                <div class="tuo"><div class="tit">工程回款金额(元)</div><div class="con" id="business_2_win_shougonghuifee">0</div></div>
                <div class="tuo"><div class="tit">联营方备用金金额(元)</div><div class="con" id="business_2_win_shoulianbeifee">0</div></div>
                <div class="tuo"><div class="tit">收入合计(元)</div><div class="con" id="business_2_win_lianyingshoufee">0</div></div>
            </div>
            <div class="table-box tablenes">
                <div class="title">项目支出</div>
                <div class="tuo"><div class="tit">项目付款金额(元)</div><div class="con" id="business_2_win_zhixiangfee">0</div></div>
                <div class="tuo"><div class="tit">联营结算金额(元)</div><div class="con" id="business_2_win_zhilianjiefee">0</div></div>
                <div class="tuo"><div class="tit">支出合计(元)</div><div class="con" id="business_2_win_lianyingzhifee">0</div></div>
            </div>
            <div class="table-box tablenes">
                <div class="title">费用扣收</div>
                <div class="tuo"><div class="tit">管理费费率(%)</div><div class="con" id="business_2_win_lian_guanrate">0</div></div>
                <div class="tuo"><div class="tit">应扣管理费(元)</div><div class="con" id="business_2_win_lian_guanfee">0</div></div>
                <div class="tuo"><div class="tit">已扣管理费(元)</div><div class="con" id="business_2_win_kou_guanfee">0</div></div>
                <div class="tuo"><div class="tit">待扣管理费(元)</div><div class="con" id="business_2_win_dai_guanfee">0</div></div>
                <div class="tuo"><div class="tit">税费费率(%)</div><div class="con" id="business_2_win_lian_shuirate">0</div></div>
                <div class="tuo"><div class="tit">应扣税费(元)</div><div class="con" id="business_2_win_lian_shuifee">0</div></div>
                <div class="tuo"><div class="tit">已扣税费(元)</div><div class="con" id="business_2_win_kou_shuifee">0</div></div>
                <div class="tuo"><div class="tit">待扣税费(元)</div><div class="con" id="business_2_win_dai_shuifee">0</div></div>
                <div class="tuo"><div class="tit">其他扣收金额(元)</div><div class="con" id="business_2_win_kou_qifee">0</div></div>
                <div class="tuo"><div class="tit">扣收合计(元)</div><div class="con" id="business_2_win_kou_allfee">0</div></div>
            </div>
            <div class="table-box tablenes">
                <div class="title">项目发票</div>
                <div class="tuo"><div class="tit">项目开票金额(元)</div><div class="con" id="business_2_win_kai_money">0</div></div>
                <div class="tuo"><div class="tit">销项税额(元)</div><div class="con" id="business_2_win_kai_ratefee">0</div></div>
                <div class="tuo"><div class="tit">项目收票金额(元)</div><div class="con" id="business_2_win_shou_money">0</div></div>
                <div class="tuo"><div class="tit">进项税额(元)</div><div class="con" id="business_2_win_shou_ratefee_zhuan">0</div></div>
                <div class="tuo"><div class="tit">应计增值税(元)</div><div class="con" id="business_2_win_zengzhifee">0</div></div>
            </div>
            <div class="table-box tablenes">
                <div class="title">资金余额</div>
                <div class="tuo"><div class="tit">项目资金余额(元)</div><div class="con" id="business_2_win_balancefee">0</div></div>
            </div>
        </div>
    </div>
    <div><?php include '../public/shrrbox.php'?></div>
</div>
<script>
    var param_id = getQueryVariable('id') || 0;

    layui.use(['form', 'layer', "laytp",'element','dropdown','laypage','table','soulTable'], function() {
        var laypage = layui.laypage, table = layui.table, dropdown = layui.dropdown, form = layui.form, soulTable = layui.soulTable,element = layui.element;

        facade.ajax({url: ask_engin_show, data:{id: param_id}}).done(function(res){
            if (res.code === 2000) {
                var data = res.data.data;
                $("#flowdingname").text(data.name);

                if(data.business == 1){
                    $(".business_1").removeClass('layui-hide');
                }else{
                    $(".business_2").removeClass('layui-hide');
                }
                $("#tong_name").text(data.name);
                $("#tong_jian_unit").text(data.jian_unit);
                $("#tong_engintype_name").text(data.engintype_name);
                $("#tong_business_name").text(data.business_name);
                $("#tong_yuzaofee").text(parseFormatNum(data.yuzaofee));

                $("#tong_name2").text(data.name);
                $("#tong_zhaotype_name").text(data.zhaotype_name);
                $("#tong_business_name2").text(data.business_name);
                $("#tong_lian_unit").text(data.lian_unit);
                $("#tong_chanid_name").text(data.chanid_name);


                if(data.business == 1){
                    if(data.state == 3 || data.state == 7 || data.state == 9){
                        $(".business_1_win").removeClass('layui-hide');
                    }else{
                        $(".business_1_no").removeClass('layui-hide');
                    }
                }else{
                    if(data.state == 3 || data.state == 7 || data.state == 9){
                        $(".business_2_win").removeClass('layui-hide');
                    }else{
                        $(".business_2_no").removeClass('layui-hide');
                    }
                }
                $("#business_1_no_zhitoufee").text(parseFormatNum(data.zhitoufee)).addClass('colorlan').click(function () {
                    openNavPage('查看投标费支付信息','zhi_tou/index.php?status=1&enginid='+data.id);
                });
                $("#business_1_no_bondjiaofee").text(parseFormatNum(data.bondjiaofee)).addClass('colorlan').click(function () {
                    openNavPage('查看保证金缴纳信息','bond_jiao/index.php?status=1&enginid='+data.id);
                });
                $("#business_1_no_bondtuifee").text(parseFormatNum(data.bondtuifee)).addClass('colorlan').click(function () {
                    openNavPage('查看保证金退回信息','bond_tui/index.php?status=1&enginid='+data.id);
                });
                $("#business_1_win_shimoney").text(parseFormatNum(data.shimoney)).addClass('colorlan').click(function () {
                    openNavPage('查看收入合同信息','contract_shi/index.php?status=1&enginid='+data.id);
                });
                $("#business_1_win_shijiemoney").text(parseFormatNum(data.shijiemoney)).addClass('colorlan').click(function () {
                    openNavPage('查看收入合同结算信息','contract_shi_jie/index.php?status=1&isreal=1&enginid='+data.id);
                });
                $("#business_1_win_visamoney").text(parseFormatNum(data.visamoney)).addClass('colorlan').click(function () {
                    openNavPage('查看项目签证信息','engin_visa/index.php?status=1&enginid='+data.id);
                });
                $("#business_1_win_shougonghuifee").text(parseFormatNum(data.shougonghuifee)).addClass('colorlan').click(function () {
                    openNavPage('查看项目收款信息','shou_xiang/index.php?status=1&feilei_option=xmsr_gchk&enginid='+data.id);
                });
                $("#business_1_win_shougongdianfee").text(parseFormatNum(data.shougongdianfee)).addClass('colorlan').click(function () {
                    openNavPage('查看项目收款信息','shou_xiang/index.php?status=1&feilei_option=xmsr_gsdz&enginid='+data.id);
                });
                $("#business_1_win_caimoney").text(parseFormatNum(data.caimoney)).addClass('colorlan').click(function () {
                    openNavPage('查看支出合同信息','contract_cai/index.php?status=1&enginid='+data.id);
                });
                $("#business_1_win_caijiemoney").text(parseFormatNum(data.caijiemoney)).addClass('colorlan').click(function () {
                    openNavPage('查看支出合同结算信息','contract_cai_jie/index.php?status=1&isreal=1&enginid='+data.id);
                });
                $("#business_1_win_buymoney").text(parseFormatNum(data.buymoney)).addClass('colorlan').click(function () {
                    openNavPage('查看采购单信息','contract_buy/index.php?status=1&enginid='+data.id);
                });
                $("#business_1_win_zhixiangfee").text(parseFormatNum(data.zhixiangfee)).addClass('colorlan').click(function () {
                    openNavPage('查看项目付款信息','zhi_xiang/index.php?status=1&enginid='+data.id);
                });
                $("#business_1_win_zhienbaofee").text(parseFormatNum(data.zhienbaofee)).addClass('colorlan').click(function () {
                    openNavPage('查看项目费用报销信息','zhi_enbao/index.php?status=1&enginid='+data.id);
                });
                $("#business_1_win_balancefee").text(parseFormatNum(data.balancefee));
                if(data.balancefee < 0){
                    $("#business_1_win_balancefee").addClass('colorhong');
                }
                $("#business_1_win_kai_money").text(parseFormatNum(data.kai_money)).addClass('colorlan').click(function () {
                    openNavPage('查看项目开票信息','piao_kai/index.php?status=1&enginid='+data.id);
                });
                $("#business_1_win_kai_ratefee").text(parseFormatNum(data.kai_ratefee)).addClass('colorlan').click(function () {
                    openNavPage('查看项目开票信息','piao_kai/index.php?status=1&enginid='+data.id);
                });
                $("#business_1_win_shou_money").text(parseFormatNum(data.shou_money)).addClass('colorlan').click(function () {
                    openNavPage('查看项目收票信息','piao_shou/index.php?status=1&enginid='+data.id);
                });
                $("#business_1_win_shou_ratefee_zhuan").text(parseFormatNum(data.shou_ratefee_zhuan)).addClass('colorlan').click(function () {
                    openNavPage('查看项目收票明细信息','piao_shou/detail.php?status=1&piaotype=1&enginid='+data.id);
                });
                $("#business_1_win_zengzhifee").text(parseFormatNum(data.zengzhifee));
                $("#business_1_win_daihuifee_anhe").text(parseFormatNum(data.daihuifee_anhe));
                $("#business_1_win_daihuifee_ankai").text(parseFormatNum(data.daihuifee_ankai));
                $("#business_1_win_daihuifee_anjie").text(parseFormatNum(data.daihuifee_anjie));

                $("#business_2_no_shoutoufee").text(parseFormatNum(data.shoutoufee)).addClass('colorlan').click(function () {
                    openNavPage('查看投标费收取信息','shou_tou/index.php?status=1&enginid='+data.id);
                });
                $("#business_2_no_zhitoufee").text(parseFormatNum(data.zhitoufee)).addClass('colorlan').click(function () {
                    openNavPage('查看投标费支付信息','zhi_tou/index.php?status=1&enginid='+data.id);
                });
                $("#business_2_no_toushouzhicha").text(parseFormatNum(data.toushouzhicha));
                if(data.toushouzhicha < 0){
                    $("#business_2_no_toushouzhicha").addClass('colorhong');
                }
                $("#business_2_no_bondshoufee").text(parseFormatNum(data.bondshoufee)).addClass('colorlan').click(function () {
                    openNavPage('查看保证金收取信息','bond_shou/index.php?status=1&enginid='+data.id);
                });
                $("#business_2_no_bondjiaofee").text(parseFormatNum(data.bondjiaofee)).addClass('colorlan').click(function () {
                    openNavPage('查看保证金缴纳信息','bond_jiao/index.php?status=1&enginid='+data.id);
                });
                $("#business_2_no_bondtuifee").text(parseFormatNum(data.bondtuifee)).addClass('colorlan').click(function () {
                    openNavPage('查看保证金退回信息','bond_tui/index.php?status=1&enginid='+data.id);
                });
                $("#business_2_no_bondfanfee").text(parseFormatNum(data.bondfanfee)).addClass('colorlan').click(function () {
                    openNavPage('查看保证金返还信息','bond_fan/index.php?status=1&enginid='+data.id);
                });
                $("#business_2_no_baoyufee").text(parseFormatNum(data.baoyufee));
                $("#business_2_no_biaoqianfunfee").text(parseFormatNum(data.biaoqianfunfee));

                $("#business_2_win_shougonghuifee").text(parseFormatNum(data.shougonghuifee)).addClass('colorlan').click(function () {
                    openNavPage('查看项目收款信息','shou_xiang/index.php?status=1&feilei_option=xmsr_gchk&enginid='+data.id);
                });
                $("#business_2_win_shoulianbeifee").text(parseFormatNum(data.shoulianbeifee)).addClass('colorlan').click(function () {
                    openNavPage('查看项目收款信息','shou_xiang/index.php?status=1&feilei_option=xmsr_lyfbyj&enginid='+data.id);
                });
                $("#business_2_win_lianyingshoufee").text(parseFormatNum(data.lianyingshoufee));
                $("#business_2_win_zhixiangfee").text(parseFormatNum(data.zhixiangfee)).addClass('colorlan').click(function () {
                    openNavPage('查看项目付款信息','zhi_xiang/index.php?status=1&enginid='+data.id);
                });
                $("#business_2_win_zhilianjiefee").text(parseFormatNum(data.zhilianjiefee)).addClass('colorlan').click(function () {
                    openNavPage('查看联营结算信息','zhi_lianjie/index.php?status=1&enginid='+data.id);
                });
                $("#business_2_win_lianyingzhifee").text(parseFormatNum(data.lianyingzhifee));
                $("#business_2_win_lian_guanrate").text(data.lian_guanrate).addClass('colorlan').click(function () {
                    openNavPage('查看联营合同信息','contract_lian/index.php?status=1&enginid='+data.id);
                });
                $("#business_2_win_lian_guanfee").text(parseFormatNum(data.lian_guanfee));
                $("#business_2_win_kou_guanfee").text(parseFormatNum(data.kou_guanfee)).addClass('colorlan').click(function () {
                    openNavPage('查看费用扣收信息','lian_koulan/index.php?status=1&feitype_option=xmsr_lyfyhks_glf&enginid='+data.id);
                });
                $("#business_2_win_dai_guanfee").text(parseFormatNum(data.dai_guanfee));
                $("#business_2_win_lian_shuirate").text(data.lian_shuirate).addClass('colorlan').click(function () {
                    openNavPage('查看联营合同信息','contract_lian/index.php?status=1&enginid='+data.id);
                });
                $("#business_2_win_lian_shuifee").text(parseFormatNum(data.lian_shuifee));
                $("#business_2_win_kou_shuifee").text(parseFormatNum(data.kou_shuifee)).addClass('colorlan').click(function () {
                    openNavPage('查看费用扣收信息','lian_koulan/index.php?status=1&feitype_option=xmsr_lyfyhks_sf&enginid='+data.id);
                });
                $("#business_2_win_dai_shuifee").text(parseFormatNum(data.dai_shuifee));
                $("#business_2_win_kou_qifee").text(parseFormatNum(data.kou_qifee)).addClass('colorlan').click(function () {
                    openNavPage('查看费用扣收信息','lian_koulan/index.php?status=1&feitype_option=noguannoshui&enginid='+data.id);
                });
                $("#business_2_win_kou_allfee").text(parseFormatNum(data.kou_allfee));
                $("#business_2_win_kai_money").text(parseFormatNum(data.kai_money)).addClass('colorlan').click(function () {
                    openNavPage('查看项目开票信息','piao_kai/index.php?status=1&enginid='+data.id);
                });
                $("#business_2_win_kai_ratefee").text(parseFormatNum(data.kai_ratefee)).addClass('colorlan').click(function () {
                    openNavPage('查看项目开票信息','piao_kai/index.php?status=1&enginid='+data.id);
                });
                $("#business_2_win_shou_money").text(parseFormatNum(data.shou_money)).addClass('colorlan').click(function () {
                    openNavPage('查看项目收票信息','piao_shou/index.php?status=1&enginid='+data.id);
                });
                $("#business_2_win_shou_ratefee_zhuan").text(parseFormatNum(data.shou_ratefee_zhuan)).addClass('colorlan').click(function () {
                    openNavPage('查看项目收票明细信息','piao_shou/detail.php?status=1&piaotype=1&enginid='+data.id);
                });
                $("#business_2_win_zengzhifee").text(parseFormatNum(data.zengzhifee));
                $("#business_2_win_balancefee").text(parseFormatNum(data.balancefee));
                if(data.balancefee < 0){
                    $("#business_2_win_balancefee").addClass('colorhong');
                }
















                $("#state_name").text(data.state_name);
                $("#name").text(data.name);
                $("#number").text(data.number);
                $("#engintype_name").text(data.engintype_name);
                $("#jian_unit").text(data.jian_unit);
                $("#areas").text(data.areas);
                $("#addr").text(data.addr);
                $("#zhaotype_name").text(data.zhaotype_name);
                $("#ziyao").text(data.ziyao);
                $("#business_name").text(data.business_name);
                $("#lian_unit").text(data.lian_unit);
                $("#kuang").text(data.kuang);
                $("#chanid_name").text(data.chanid_name);
                $("#explain").text(data.explain);

                $("#yuzaofee").text(showChineseNumber(data.yuzaofee));
                $("#zhao_unit").text(data.zhao_unit);
                $("#baofee").text(showChineseNumber(data.baofee));
                $("#enddt_tou").text(data.enddt_tou);
                $("#kaidt").text(data.kaidt);
                $("#zhaoshuo").text(data.zhaoshuo);

                $("#touunit_name").text(data.touunit_name);
                $("#bianer_name").text(data.bianer_name);
                $("#toushuo").text(data.toushuo);

                $("#kaiguo").text(data.kaiguo);
                $("#winunit_name").text(data.winunit_name);
                $("#winfee").text(showChineseNumber(data.winfee));
                $("#windt").text(data.windt);
                $("#kaishuo").text(data.kaishuo);







                if(data.business == 2){
                    $(".business2").removeClass('layui-hide');
                }
                if(data.kaiguo == '中标'){
                    $(".wininfo").removeClass('layui-hide');
                    $("#shikaidt").text(data.shikaidt);
                    $("#shijundt").text(data.shijundt);
                }



                public_flow_show_display(res.data.billinfo);
                public_upload_show_file('upload_files', res.data.files);
                render_from();
            }
        });

        public_get_readsandlog('engin', param_id);
    });



</script>
</body>
</html>




